Please help. I am trying to modify the Wizard generated layout dxl columns to remove duplicate object identifiers from a second level linked module. I have seen advice to use the skip list, I have not been able to figure out how to implement this idea from a prior post: "You need a global Skip list with 'Object' as the key. Done at the bottom where its DoneOne=true, you want to put othero into the Skip instead of displaying its information. If the Object is already in the skip then the put is ignored. After this code you need ot plow thorough the Skip list, getting othero values, and display them." I am unsure how to fit this into the existing wizard code, nothing I try seems to work. snc-engineer - Tue Jul 02 19:00:18 EDT 2013 |
Re: Remove Duplicate Items from Layout Wizard I'm more concerned about why you are seeing duplicate object identifiers, this should not typically happen when performing traceability. I am wondering if you have selected to use the Recursive Analysis option in the Analysis Wizard but you have a circular trace issue with the way in which links have been allowed to flow between modules. Duplicate object identifiers will appear if circular linking has occurred across modules. For example, if you have modules A and B.....and module A has links to module B, and module B has links back to module A. A trace column created by the Analysis Wizard using the default multiple depth trace of 3 hops or more will cause DOORS to follow links from A to B, then from B back to A, then from A back to B - as you can see, the trace from A to B has been done twice so duplicate object identifiers will start to be displayed.
Paul Miller
|
Re: Remove Duplicate Items from Layout Wizard The code should look something like the following. Make sure you declare the skiplist before the showIn() function.
// add this line
Skip otherObjects = create
void showIn(Object o, int depth) {
// blah blah
if (depth == 1) {
// add this line and move all display() calls to be within the skip list loop at the end
put(otherObjects, othero, othero)
}
}
}
showIn(obj,1)
// add the following lines
Object o
for o in otherObjects do
{
// paste display calls here
display(identifier(othero))
}
|
Re: Remove Duplicate Items from Layout Wizard Tony_Goodman - Wed Jul 03 09:20:41 EDT 2013 The code should look something like the following. Make sure you declare the skiplist before the showIn() function.
// add this line
Skip otherObjects = create
void showIn(Object o, int depth) {
// blah blah
if (depth == 1) {
// add this line and move all display() calls to be within the skip list loop at the end
put(otherObjects, othero, othero)
}
}
}
showIn(obj,1)
// add the following lines
Object o
for o in otherObjects do
{
// paste display calls here
display(identifier(othero))
}
Thank you, I will try that. |
Re: Remove Duplicate Items from Layout Wizard PRM - Tue Jul 02 19:30:12 EDT 2013 I'm more concerned about why you are seeing duplicate object identifiers, this should not typically happen when performing traceability. I am wondering if you have selected to use the Recursive Analysis option in the Analysis Wizard but you have a circular trace issue with the way in which links have been allowed to flow between modules. Duplicate object identifiers will appear if circular linking has occurred across modules. For example, if you have modules A and B.....and module A has links to module B, and module B has links back to module A. A trace column created by the Analysis Wizard using the default multiple depth trace of 3 hops or more will cause DOORS to follow links from A to B, then from B back to A, then from A back to B - as you can see, the trace from A to B has been done twice so duplicate object identifiers will start to be displayed.
Paul Miller
I agree this might be nontraditional for requirements, we are using this for verification efforts. I attached our DOORS architecture for this, showing where the duplicates will arrive. My goal is to ensure resources and data products are streamlined to remove duplicates. Attachments VAL effort.docx |
Re: Remove Duplicate Items from Layout Wizard Tony_Goodman - Wed Jul 03 09:20:41 EDT 2013 The code should look something like the following. Make sure you declare the skiplist before the showIn() function.
// add this line
Skip otherObjects = create
void showIn(Object o, int depth) {
// blah blah
if (depth == 1) {
// add this line and move all display() calls to be within the skip list loop at the end
put(otherObjects, othero, othero)
}
}
}
showIn(obj,1)
// add the following lines
Object o
for o in otherObjects do
{
// paste display calls here
display(identifier(othero))
}
Unfortunately I received dxl errors, wondering if I applied your instructions wrong. Here are the errors, below is the dxl I used (colored items I added from your instructions). Errors:
E- DXL: <Line:77> incorrect arguments for function (identifier) Code:
// DXL generated by DOORS traceability wizard on 03 July 2013. |
Re: Remove Duplicate Items from Layout Wizard snc-engineer - Wed Jul 03 14:22:38 EDT 2013 Unfortunately I received dxl errors, wondering if I applied your instructions wrong. Here are the errors, below is the dxl I used (colored items I added from your instructions). Errors:
E- DXL: <Line:77> incorrect arguments for function (identifier) Code:
// DXL generated by DOORS traceability wizard on 03 July 2013. I see that "s" and "othero" are correctly defined in function "showOut", lines #24 and #22. I see starting at line #73 you have code not in any function and specifically not in function "showOut". You can fix:
-Louie |
Re: Remove Duplicate Items from Layout Wizard llandale - Mon Jul 08 15:04:42 EDT 2013 I see that "s" and "othero" are correctly defined in function "showOut", lines #24 and #22. I see starting at line #73 you have code not in any function and specifically not in function "showOut". You can fix:
-Louie @llandale (Louie) - Thank you for the suggestion, I did try your recommendation. Result is that there are no errors, however no items show up in the layout dxl column either. Unsure how to make this work without a blank column or a syntax error. |
Re: Remove Duplicate Items from Layout Wizard snc-engineer - Tue Jul 09 09:48:35 EDT 2013 @llandale (Louie) - Thank you for the suggestion, I did try your recommendation. Result is that there are no errors, however no items show up in the layout dxl column either. Unsure how to make this work without a blank column or a syntax error. Lets say your links look like this:
Notice there are two paths from oA1 to oC1. The code is intended to insure that information about oC1 only displays once for oA; where the original Wizard code will display it twice. I think the code works in that case. I wonder however if your B->C links are in the same link-module as your A->B links. -Louie |